﻿<controls:ChildWindow x:Class="LightingPlatform.LoginWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="229" Title="登录" FontSize="13" FontFamily="Arial,Microsoft YaHei,NSimSun,SimHei" Language="zh-CN">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0, 20, 0,0">
            <TextBlock Text="用户名" HorizontalAlignment="Left" Foreground="Gray" FontSize="12"/>
            <TextBox x:Name="UserName" TabIndex="1" HorizontalAlignment="Left" FontSize="14" Height="30" Width="305" Margin="0, 2,0 ,0"/>
            <TextBlock Text="密码" HorizontalAlignment="Left" Foreground="Gray" Margin="0, 10, 0, 0" FontSize="12"/>
            <PasswordBox x:Name="UserPassword" KeyDown="UserPassword_KeyDown" TabIndex="2" PasswordChar="*" HorizontalAlignment="Left" FontSize="14"  Margin="0,2,0 ,0" Height="30" Width="305"/>
        </StackPanel>
        

        <Button TabIndex="3" x:Name="LoginBtn" Width="80" Height="25" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                <Image Source="Images/Login.png" Width="16" Height="16" VerticalAlignment="Center"/>
                <TextBlock Text="登    录" Margin="5,0,0,0" VerticalAlignment="Center"/>
            </StackPanel>
        </Button>
    </Grid>
</controls:ChildWindow>